﻿@{
    ViewBag.Title = "Button";
}
<h2>
    Button</h2>
<div id="dialog">
    <table>
        <tr>
            <td>
                &lt;div class="btn_normal"&gt;示例&lt;/div&gt;
            </td>
            <td>
                <div class="btn_normal">
                    示例</div>
            </td>
        </tr>
        <tr>
            <td>
                &lt;div class="btn_normal" style="width:50px;"&gt;示例&lt;/div&gt;
            </td>
            <td>
                <div class="btn_normal" style="width: 50px;">
                    示例</div>
            </td>
        </tr>
        <tr>
            <td>
                &lt;div id="btn1" class="btn_normal" style="width:50px;"&gt;单击事件&lt;/div&gt;<br/>
                代码：$("#btn1").click(function(){ alert("提示信息。")});
            </td>
            <td>
                <div id="btn1" class="btn_normal" style="width: 50px;">
                    单击事件</div>
            </td>
        </tr>
    </table>
</div>
<script>
    $(function () {
        $("#btn1").click(function () { alert("提示信息。") });
    });

    var vDialog = new Dialog();
    vDialog.ID = "dialog";
    vDialog.Title = "按钮设置示例-Button";
    vDialog.Type = "dialog";
    vDialog.ShowClose = false;
    vDialog.Width = "600px";
    vDialog.Height = "400px";
    vDialog.ShowMax = true;
    vDialog.ContentAlign = "left";
    vDialog.ContentValign = "top";
    vDialog.ContentObj = $("#dialog");
    vDialog.initDialog();
    vDialog.show();
</script>
